// 模拟数据配置文件

// 登录相关数据
export const loginData = {
  users: [
    {
      id: 1,
      username: 'admin',
      password: '123456',
      role: 'admin',
      name: '管理员',
      avatar: '/images/avatar-admin.png'
    },
    {
      id: 2,
      username: 'user',
      password: '123456',
      role: 'user',
      name: '测试用户',
      avatar: '/images/avatar-user.png'
    }
  ],
  tokens: {
    admin: 'admin-token-123',
    user: 'user-token-456'
  }
}

// 仪表盘页面数据
export const dashboardData = {
  monthlyStats: {
    successDays: 15,
    successRate: 75
  },
  totalStats: {
    successDays: 120,
    availablePoints: 1200
  },
  // 打卡记录数据，包含成功和失败状态
  checkInRecords: [
    { date: '2025-01-01', status: 'success' },
    { date: '2025-01-02', status: 'success' },
    { date: '2025-01-03', status: 'success' },
    { date: '2025-01-04', status: 'fail' },
    { date: '2025-01-05', status: 'success' },
    { date: '2025-01-06', status: 'success' },
    { date: '2025-01-07', status: 'fail' },
    { date: '2025-01-08', status: 'success' },
    { date: '2025-01-09', status: 'success' },
    { date: '2025-01-10', status: 'success' },
    { date: '2025-01-11', status: 'fail' },
    { date: '2025-01-12', status: 'success' },
    { date: '2025-01-13', status: 'fail' },
    { date: '2025-01-14', status: 'fail' },
    { date: '2025-01-15', status: 'success' },
    { date: '2025-01-16', status: 'success' },
    { date: '2025-01-17', status: 'success' },
    { date: '2025-01-18', status: 'fail' },
    { date: '2025-01-19', status: 'success' },
    { date: '2025-01-20', status: 'fail' },
    { date: '2025-01-21', status: 'fail' },
    { date: '2025-01-22', status: 'success' },
    { date: '2025-01-23', status: 'success' }
  ]
}

// 打卡记录页面数据
export const checkInData = {
  records: [
    {
      date: '2024-01-23',
      targetTime: '22:00',
      actualTime: '21:55',
      status: 'success'
    },
    {
      date: '2024-01-22',
      targetTime: '22:00',
      actualTime: '21:50',
      status: 'success'
    },
    {
      date: '2024-01-21',
      targetTime: '22:00',
      actualTime: '22:30',
      status: 'failed'
    }
  ],
  total: 50
}

// 商城页面数据
export const shopData = {
  userPoints: 1200,
  products: [
    {
      id: 1,
      name: '优质睡眠眼罩',
      points: 200,
      stock: 10,
      image: '/images/eye-mask.png'
    },
    {
      id: 2,
      name: '助眠精油',
      points: 300,
      stock: 5,
      image: '/images/essential-oil.png'
    },
    {
      id: 3,
      name: '高级记事本',
      points: 150,
      stock: 20,
      image: '/images/notebook.png'
    },
    {
      id: 4,
      name: '静音闹钟',
      points: 500,
      stock: 3,
      image: '/images/alarm-clock.png'
    }
  ],
  records: [
    {
      id: 1,
      date: '2024-01-20 15:30:00',
      productName: '优质睡眠眼罩',
      points: 200,
      status: 'success'
    },
    {
      id: 2,
      date: '2024-01-15 10:20:00',
      productName: '助眠精油',
      points: 300,
      status: 'success'
    }
  ]
}

// 设置页面数据
export const settingsData = {
  defaultSleepTime: '22:00',
  pointsPerDay: 10
}